<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use App\Traits\HasLoan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LoanCreditProvident extends Model
{
    use HasFactory, HasDateTimeFormatter, HasLoan;

    protected $table = "loan_credit_provident";

    const TEMPLATE_HEADER = [
        "apply_at" => "申请时间",
        "name" => "称呼",
        "mobile" => "用户联系电话",
        "amount" => "贷款额度",
        "need_home_service" => "是否需要上门",
        "addr" => "详细地址",
        "company_name" => "上班公司名字全称",
        "pay_method" => "工资发放模式",
        "month_salary" => "每个月工资多少",
        "provident_age" => "已购买公积金多少年",
        "month_provident" => "每月公积金额度",
        "social_insurance_age" => "已购买社保多少年",
        "month_social_insurance" => "每个月社保缴费多少",
    ];

    protected $fillable = [
        "company_name",
        "pay_method",
        "month_salary",
        "provident_age",
        "month_provident",
        "social_insurance_age",
        "month_social_insurance",
    ];
}
